function toUrl(url) {
    window.location.href = url;
}

function findGradeSort(dutyId) {
    var url = "${ctx}/ajax/grade_list.xhtml?id=" + dutyId;
    $.getJSON(url, function(grades) {
        if (grades != null && grades.length != 0) {
            //document.getElementById("staff_gradeSort").disabled = "";
            var optionsHtml = "";
            $.each(grades, function(i, grade) {
                optionsHtml += "<option value=\"" + grade.id + "\">" + grade.gradeSort + "</option>"
            });
            $("#staff_gradeSort").find("option:selected").after(optionsHtml);
        }
    });
}

